import {createRouter, createWebHistory} from 'vue-router'
import HomeView from '../views/HomeView.vue'

const routes = [
    {
        path: '/firstView',
        name: 'FirstView',
        component: function () {
            return import('../views/FirstView.vue')
        }
    },
    {
        path: '/login',
        name: 'LoginPage',
        component: function () {
            return import('../views/LoginPage.vue')
        }
    },
    {
        path: '/',
        name: 'home',
        component: HomeView
    }
]

const router = createRouter({
    history: createWebHistory(),
    routes
})

export default router
